3.1.73 \(\int \frac {\log (3+e x)}{x} \, dx\) [73]

Optimal. Leaf size=16 \[ \log (3) \log (x)-\text {Li}_2\left (-\frac {e x}{3}\right ) \]

[Out]

ln(3)*ln(x)-polylog(2,-1/3*e*x)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2439, 2438} \begin {gather*} \log (3) \log (x)-\text {PolyLog}\left (2,-\frac {e x}{3}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Log[3 + e*x]/x,x]

[Out]

Log[3]*Log[x] - PolyLog[2, -1/3*(e*x)]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2439

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*d])*Log[x], x] + Dist[
b, Int[Log[1 + e*(x/d)]/x, x], x] /; FreeQ[{a, b, c, d, e}, x] && GtQ[c*d, 0]

Rubi steps

\begin {align*} \int \frac {\log (3+e x)}{x} \, dx &=\log (3) \log (x)+\int \frac {\log \left (1+\frac {e x}{3}\right )}{x} \, dx\\ &=\log (3) \log (x)-\text {Li}_2\left (-\frac {e x}{3}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 16, normalized size = 1.00 \begin {gather*} \log (3) \log (x)-\text {Li}_2\left (-\frac {e x}{3}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Log[3 + e*x]/x,x]

[Out]

Log[3]*Log[x] - PolyLog[2, -1/3*(e*x)]

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(32\) vs. \(2(14)=28\).
time = 0.10, size = 33, normalized size = 2.06

method result size
derivativedivides \(\left (\ln \left (e x +3\right )-\ln \left (\frac {e x}{3}+1\right )\right ) \ln \left (-\frac {e x}{3}\right )-\dilog \left (\frac {e x}{3}+1\right )\) \(33\)
default \(\left (\ln \left (e x +3\right )-\ln \left (\frac {e x}{3}+1\right )\right ) \ln \left (-\frac {e x}{3}\right )-\dilog \left (\frac {e x}{3}+1\right )\) \(33\)
risch \(\left (\ln \left (e x +3\right )-\ln \left (\frac {e x}{3}+1\right )\right ) \ln \left (-\frac {e x}{3}\right )-\dilog \left (\frac {e x}{3}+1\right )\) \(33\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(e*x+3)/x,x,method=_RETURNVERBOSE)

[Out]

(ln(e*x+3)-ln(1/3*e*x+1))*ln(-1/3*e*x)-dilog(1/3*e*x+1)

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 23, normalized size = 1.44 \begin {gather*} \log \left (x e + 3\right ) \log \left (-\frac {1}{3} \, x e\right ) + {\rm Li}_2\left (\frac {1}{3} \, x e + 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(e*x+3)/x,x, algorithm="maxima")

[Out]

log(x*e + 3)*log(-1/3*x*e) + dilog(1/3*x*e + 1)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(e*x+3)/x,x, algorithm="fricas")

[Out]

integral(log(x*e + 3)/x, x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 1.45, size = 87, normalized size = 5.44 \begin {gather*} \begin {cases} - \operatorname {Li}_{2}\left (\frac {e x e^{i \pi }}{3}\right ) & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \wedge \left |{x}\right | < 1 \\\log {\left (3 \right )} \log {\left (x \right )} - \operatorname {Li}_{2}\left (\frac {e x e^{i \pi }}{3}\right ) & \text {for}\: \left |{x}\right | < 1 \\- \log {\left (3 \right )} \log {\left (\frac {1}{x} \right )} - \operatorname {Li}_{2}\left (\frac {e x e^{i \pi }}{3}\right ) & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \\- {G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {x} \right )} \log {\left (3 \right )} + {G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {x} \right )} \log {\left (3 \right )} - \operatorname {Li}_{2}\left (\frac {e x e^{i \pi }}{3}\right ) & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(e*x+3)/x,x)

[Out]

Piecewise((-polylog(2, e*x*exp_polar(I*pi)/3), (Abs(x) < 1) & (1/Abs(x) < 1)), (log(3)*log(x) - polylog(2, e*x
*exp_polar(I*pi)/3), Abs(x) < 1), (-log(3)*log(1/x) - polylog(2, e*x*exp_polar(I*pi)/3), 1/Abs(x) < 1), (-meij
erg(((), (1, 1)), ((0, 0), ()), x)*log(3) + meijerg(((1, 1), ()), ((), (0, 0)), x)*log(3) - polylog(2, e*x*exp
_polar(I*pi)/3), True))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(e*x+3)/x,x, algorithm="giac")

[Out]

integrate(log(x*e + 3)/x, x)

________________________________________________________________________________________

Mupad [B]
time = 0.03, size = 18, normalized size = 1.12 \begin {gather*} {\mathrm {Li}}_{\mathrm {2}}\left (-\frac {e\,x}{3}\right )+\ln \left (e\,x+3\right )\,\ln \left (-\frac {e\,x}{3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(e*x + 3)/x,x)

[Out]

dilog(-(e*x)/3) + log(e*x + 3)*log(-(e*x)/3)

________________________________________________________________________________________